package com.atguigu.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProviderController {

    @Value("${server.port}")
    private String port;
//无敌帅气的我
    //又提交一次
    //edit by hotlady
    //edit by master
    @GetMapping("/find/{id}")
    public String Find(@PathVariable("id")Integer id){

        System.out.println("lalalala");
         return   "端口号是"+id+""+port;
    }
}
